import * as client from './client'
import urlConfig from './urlConfig'
///游客下单
/**
 * 请求参数
 */
export class touristOrderRst {
    /**
     * 需要的商铺UID
     */
    public storeUID: string;
    /**
     * 销售网点ID
     */
    public salesOutletUID: string;
    /**
     * 实付金额
     */
    public amount: number;
    /**
     * 不参加优惠金额，保留两位小数点
     */
    public noDiscountPrice: number;
    /**
     * 实际消费金额，保留两位小数点
     */
    public totalPrice: number;

    public clientSource:number;

    public remark: string;

    
    
}
/**
 * 返回数据
 */
export class  TouristOrderRpn {
    public isSuccess: number;
    //状态码？
    public code: string;
    //描述
    public description: string;
    //返回数据
    public resData: string;
}

/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: touristOrderRst) {
    const data = await client.exec(urlConfig.addTourist, rst);
    return JSON.parse(data) as TouristOrderRpn;
}
